import http from "../../utils/http"
//用户分组
export interface usergroupitem{
_id?:string;
name:string;
}

const AuserGroups = {
    // 查询用户分组数据
    search: (data?: pagequery) => http.post('/userGroups/search', data),
    // 新增用户分组数据
    add: (data: usergroupitem) => http.post('/userGroups/add', data),
    // 删除用户分组数据
    remove: (data:deleteparams ) => http.delete('/userGroups/remove', data),
    // 修改用户分组数据
    update: (data: usergroupitem) => http.put('/userGroups/update', data)
}
export default AuserGroups;